var classService = require('../service/classService')

module.exports = {
    async add(req, res) {
        var result = await classService.add(req.body)
        res.send(result)
    },
    async getList(req, res) {
        var result = await classService.getList()
        res.send(result)
    },
    async update(req, res) {
        var result = await classService.update(req.params.id, req.body)
        res.send(result)
    },
    async delete(req, res) {
        var result = await classService.delete(req.body)
        res.send(result)
    }
}